package com.qdc.datacenters.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qdc.datacenters.domain.query.chatmsg.ChatMsgListQuery;
import com.qdc.datacenters.domain.vo.chatmsg.ChatMsgRoomListVo;
import com.qdc.datacenters.domain.vo.group.CorpGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.qdc.datacenters.domain.entity.CorpGroup;

import java.util.List;

/**
 * 企业微信群(CorpGroup)表数据库访问层
 *
 * @author danmo
 * @since 2024-03-04 23:15:33
 */
@Repository()
@Mapper
public interface CorpGroupMapper extends BaseMapper<CorpGroup> {

    CorpGroupVo getByChatId(@Param("chatId") String chatId, @Param("groupType") Integer groupType);

    List<ChatMsgRoomListVo> getRoomMsgList(ChatMsgListQuery query);
}

